package io.scnb.lesson001.demo22.test3;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * 只要类上面有@MyBean注解的，都会被作为bean注册到容器中
 * 当useDefaultFilters=true时，spring容器还会扫描注册标注有@Component，@Repository，@Controller和@Service
 * 这几个注解的类
 */
@ComponentScan(
        useDefaultFilters = false,
        includeFilters = {
        @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = MyBean.class)
})
public class ScanBean3 {
}
